package com.qywx.service;

import com.qywx.entity.SysUserEntity;
import com.qywx.utils.R;

import javax.servlet.http.HttpServletRequest;
import java.security.NoSuchAlgorithmException;

/**
 * @ClassName SysLoginService
 * @Description: TODO
 * @Author wmj
 * @Date 2020/3/11
 * @Version V1.0
 **/
public interface SysLoginService {
    R login(String username, String password, HttpServletRequest request) throws NoSuchAlgorithmException;

    R getSysUseEntity(Integer userid);

    R saveSysUser(SysUserEntity sysUserEntity) throws NoSuchAlgorithmException;

    R enableUser(Integer userid);

    R forbiddenSysUser(String userid);

    R updateSysUser(String userid, String password);

    R findSysUser(int page, int size);
}
